//
//  ChoiceButton.m
//  网络FM
//
//  Created by dlios on 15/5/23.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "ChoiceButton.h"

@implementation ChoiceButton


- (void)dealloc
{
    
    [_desc release];
    [_view release];
    [super dealloc];
    
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self myButton];
        
    }
    return self;
}

- (void)myButton
{
    float width =  self.frame.size.width;
 
    self.view = [[UIImageView alloc]initWithFrame:CGRectMake(width / 3, width / 3,width / 3,width / 3)];
    [self addSubview: self.view ];
    [self.view release];
    
    self.desc = [[UILabel alloc]initWithFrame:CGRectMake(0, width / 3 * 2, width, width / 3)];
    [self addSubview:self.desc];
    [self.desc release];
}



@end
